<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			div{
				width: 300px;
				height: 100px;
				background: url('https://n.sinaimg.cn/news/transform/200/w100h100/20210524/9290-kqpyffy9947737.png') no-repeat #01FF16;
				background-size: cover;
			}
		</style>
	</head>
	<body>
		<!-- 
			background-size: cover / contain;
				cover : 等比的放大背景，直到填满背景为止
				contain ：等比的放大背景，直到填满背景的一个方向为止
		-->
		<div></div>
	</body>
</html>
